
<meta charset="utf-8">
<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/ProcessLine/processLineStep" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="processLineStep" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />

            %{-- <label >产品编码：</label>&nbsp;
             <input type="text" name="partName" value="${partName}"/>
             <label >产品名称：</label>&nbsp;
             <input type="text" name="partDesc" value="${partDesc}"/>
             <label >工序编码：</label>&nbsp;
             <input type="text" name="stepName" value="${stepName}"/>
             <label >工序名称：</label>&nbsp;
             <input type="text" name="stepDesc" value="${stepDesc}"/>
             <label >产品图号：</label>&nbsp;
             <input type="text" name="group3" value="${group3}"/>
             <label >工艺编码：</label>&nbsp;
             <input type="text" name="processCode" value="${processCode}"/><br/>
             <label >状态：</label>&nbsp;
         --}%%{--<input type="text" name="state" value="${state}"/>--}%%{--
         <g:select name="state" from="${stateList}" data-toggle="selectpicker" data-live-search="true" optionKey="STATE" optionValue="STATE" value="${state}" noSelection="['':'ALL']" />&nbsp;
             <label >创建人：</label>&nbsp;
             <input type="text" name="createdBy" value="${createdBy}"/>
             <label >审核人：</label>&nbsp;
             <input type="text" name="approvedBy" value="${approvedBy}"/>
             <label >创建时间：</label>&nbsp;
             <input type="text" name="startTime" value="${startTime}" data-pattern="yyyy-MM-dd HH::mm::ss"  data-toggle="datepicker" placeholder="FROM">
             <input type="text" name="endTime" value="${endTime}" data-pattern="yyyy-MM-dd HH::mm::ss" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;
             <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;--}%
            %{-- <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/StageWip/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;--}%
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/OutsourcedProcessing /exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
        </div>
    </form>
</div>

<div class="bjui-pageContent">
    <g:if test="${list.size() > 0}">
        <table  data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
            <tr id="t1">
                <g:each in="${tableHeadList}" status="j" var="headInstance">
                    <g:if test="${headInstance!='RN'}">
                        <th  width="125"><g:message code="${headInstance}" default="${headInstance}"/></th>
                    </g:if>
                </g:each>
            </tr>
            </thead>
            <tbody>
            <g:if test="${list.size()>0}">
                <g:each in="${list}" status="i" var="dataInstance">
                    <tr>
                        <g:each in="${tableHeadList}" status="j" var="headInstance">
                            <g:if test="${headInstance!='RN'}">
                                <td>${dataInstance["${headInstance}"]}</td>
                            </g:if>
                        </g:each>
                    </tr>
                </g:each>
            </g:if>
            <g:else>
                <g:render template="../template/emptyPanel" />
            </g:else>
            </tbody>
        </table>
    </g:if>
</div>
%{--<script>--}%
%{--$(function(){--}%

%{--var waitSum=0;--}%
%{--var preSum=0;--}%
%{--var runSum=0;--}%
%{--var holdSum=0;--}%
%{--var repairSum=0;--}%
%{--var outsrcSum=0;--}%
%{--var scrapSum=0;--}%
%{--var finSum=0;--}%
%{--var orderSum=0;--}%
%{--for(var i=0;i<${orderStatusAnalysis.size()};i++){--}%

%{--var wait='tdwait'+i--}%
%{--var sumWait=$("td[name='"+wait+"']").text()==''?0:parseInt($("td[name='"+wait+"']").text())--}%
%{--waitSum+=sumWait--}%
%{--var run='tdrun'+i--}%
%{--var sumRun=$("td[name='"+run+"']").text()==''?0:parseInt($("td[name='"+run+"']").text())--}%
%{--runSum+=sumRun--}%
%{--var hold='tdhold'+i--}%
%{--var sumHold=$("td[name='"+hold+"']").text()==''?0:parseInt($("td[name='"+hold+"']").text())--}%
%{--holdSum+=sumHold--}%
%{--var repair='tdrepair'+i--}%
%{--var sumRepair=$("td[name='"+repair+"']").text()==''?0:parseInt($("td[name='"+repair+"']").text())--}%
%{--repairSum+=sumRepair--}%
%{--var outsrc='tdoutsrc'+i--}%
%{--var sumOutsrc=$("td[name='"+outsrc+"']").text()==''?0:parseInt($("td[name='"+outsrc+"']").text())--}%
%{--outsrcSum+=sumOutsrc--}%
%{--var scrap='tdscrap'+i--}%
%{--var sumScrap=$("td[name='"+scrap+"']").text()==''?0:parseInt($("td[name='"+scrap+"']").text())--}%
%{--scrapSum+=sumScrap--}%
%{--var fin='tdfin'+i--}%
%{--var sumFin=$("td[name='"+fin+"']").text()==''?0:parseInt($("td[name='"+fin+"']").text())--}%
%{--finSum+=sumFin--}%
%{--var order='tdorder'+i--}%
%{--var sumOrder=$("td[name='"+order+"']").text()==''?0:parseInt($("td[name='"+order+"']").text())--}%
%{--orderSum+=sumOrder--}%
%{--var pre='tdpre'+i--}%
%{--var sumPre=$("td[name='"+pre+"']").text()==''?0:parseInt($("td[name='"+pre+"']").text())--}%
%{--preSum+=sumPre--}%
%{--}--}%



%{--$("td[name='waitSum']").html(waitSum);--}%
%{--$("td[name='runSum']").html(runSum);--}%
%{--$("td[name='holdSum']").html(holdSum);--}%
%{--$("td[name='repairSum']").html(repairSum);--}%
%{--$("td[name='outsrcSum']").html(outsrcSum);--}%
%{--$("td[name='scrapSum']").html(scrapSum);--}%
%{--$("td[name='finSum']").html(finSum);--}%
%{--$("td[name='orderSum']").html(sumOrder);--}%
%{--$("td[name='preSum']").html(preSum);--}%
%{--$("td[name='orderSum']").html(orderSum);--}%
%{--})--}%
%{--</script>--}%
